#include "player.h"
#include <iostream>

Player::Player()
{
}

Player::Player( int x, int y )
{
	m_x = x;
	m_y = y;
}


Player::~Player()
{
}

void Player::draw()
{
	std::cout << "Player[" << m_x << ',' << m_y << ']' << std::endl;
}

//////////////////////////////////////////////////////////////////////////

MemoryPool* Player::m_pMp = NULL;
bool Player::initMemoryPool( int initNum )
{
	if (NULL == m_pMp) {
		m_pMp = new MemoryPool(sizeof(Player), initNum);
		if (NULL == m_pMp) {
			std::cout << "Memory Pool NEW Fail" << std::endl;
			return false;
		}
	}
	return true;
}

void Player::releaseMemoryPool()
{

}
